package com.avantis.admin.service;

import com.avantis.common.base.BaseService;
import com.avantis.common.entity.Permission;
import org.springframework.data.domain.Page;

import java.util.List;

/**
* @Description:    java类作用描述
* @Author:         kirago
* @CreateDate:     2018/11/26 10:40 PM
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
public interface PermissionService extends BaseService<Permission> {

    List<Permission> loadUserPermission(Integer id);

    List<Permission> loadUserPermissionByType(Integer id,Integer type);

    List<Permission> findPermissionsAndSelected(Integer id);

    Page<Permission> findByPage(int pageNo,int length);
}
